import request from '@/utils/request'

// banner列表
export function apiGetBannerList() {
    return request({
        url: '/cmsBanner/listAll',
        method: 'get'
    })
}

// 修改banner列表
export function apiEditBannerList(data) {
    return request({
        url: '/cmsBanner/updateBannerList',
        method: 'post',
        headers: { 'Content-Type': 'application/json' },
        data
    })
}

// 删除
export function apiBannerDel(params) {
    return request({
        url: '/cmsBanner/delete',
        method: 'get',
        params
    })
}

// 金刚区列表
export function apiGetFunctionAreaList() {
    return request({
        url: '/cmsFunctionAreaConfig/list',
        method: 'get'
    })
}

// 金刚区列表新增
export function apiFunctionAreaAdd(data) {
    return request({
        url: '/cmsFunctionAreaConfig/add',
        method: 'post',
        headers: { 'Content-Type': 'application/json' },
        data
    })
}

// 编辑
export function apiFunctionAreaUpdate(data) {
    return request({
        url: '/cmsFunctionAreaConfig/update',
        method: 'post',
        headers: { 'Content-Type': 'application/json' },
        data
    })
}

// 删除
export function apiFunctionAreaDel(params) {
    return request({
        url: '/cmsFunctionAreaConfig/delete',
        method: 'post',
        params
    })
}